home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
program
/
kh_gdi.zip
/
GRDEMO.RC
< prev
next >
Wrap
Text File
|
1996-05-11
|
13KB
|
342 lines
/* Project gdi_demo
Copyright ⌐ 1995. All Rights Reserved.
SUBSYSTEM: gdi_demo.exe Application
FILE: gd_dmapp.rc
AUTHOR: S.Vartanov
OVERVIEW
========
All resources defined here.
*/
#if !defined(WORKSHOP_INVOKED)
#include <windows.h>
#endif
#include "gd_dmapp.rh"
SDI_MENU MENU
{
POPUP "&File"
{
MENUITEM "&New", CM_FILENEW
MENUITEM SEPARATOR
MENUITEM SEPARATOR
MENUITEM "E&xit\tAlt+F4", CM_EXIT
}
MENUITEM SEPARATOR
MENUITEM SEPARATOR
MENUITEM SEPARATOR
MENUITEM SEPARATOR
MENUITEM SEPARATOR
POPUP "&Help"
{
MENUITEM "&About...", CM_HELPABOUT
}
}
// Accelerator table for short-cut to menu commands. (include\owl\editfile.rc)
SDI_MENU ACCELERATORS
BEGIN
VK_DELETE, CM_EDITDELETE, VIRTKEY
VK_DELETE, CM_EDITCUT, VIRTKEY, SHIFT
VK_INSERT, CM_EDITCOPY, VIRTKEY, CONTROL
VK_INSERT, CM_EDITPASTE, VIRTKEY, SHIFT
VK_DELETE, CM_EDITCLEAR, VIRTKEY, CONTROL
VK_BACK, CM_EDITUNDO, VIRTKEY, ALT
VK_F3, CM_EDITFINDNEXT, VIRTKEY
END
//
// Table of help hints displayed in the status bar.
//
STRINGTABLE
BEGIN
-1, "File/document operations"
CM_FILENEW, "Creates a new window"
CM_FILEOPEN, "Opens a window"
CM_FILECLOSE, "Close this document"
CM_FILESAVE, "Saves this document"
CM_FILESAVEAS, "Saves this document with a new name"
CM_EXIT, "Quits gdi_demoApp and prompts to save the documents"
CM_EDITUNDO-1, "Edit operations"
CM_EDITUNDO, "Reverses the last operation"
CM_EDITCUT, "Cuts the selection and puts it on the Clipboard"
CM_EDITCOPY, "Copies the selection and puts it on the Clipboard"
CM_EDITPASTE, "Inserts the clipboard contents at the insertion point"
CM_EDITDELETE, "Deletes the selection"
CM_EDITCLEAR, "Clear the document"
CM_EDITADD, "Insert a new line"
CM_EDITEDIT, "Edit the current line"
CM_EDITFIND-1, "Search/replace operations"
CM_EDITFIND, "Finds the specified text"
CM_EDITREPLACE, "Finds the specified text and changes it"
CM_EDITFINDNEXT, "Finds the next match"
CM_HELPABOUT-1, "Access About"
CM_HELPABOUT, "About the gdi_demo application"
END
//
// OWL string table
//
// EditFile (include\owl\editfile.rc and include\owl\editsear.rc)
STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
BEGIN
IDS_CANNOTFIND, "Cannot find ""%s""."
IDS_UNTITLED, "Document"
IDS_UNABLEREAD, "Unable to read file %s from disk."
IDS_UNABLEWRITE, "Unable to write file %s to disk."
IDS_FILECHANGED, "The text in the %s file has changed.\n\nDo you want to save the changes?"
IDS_FILEFILTER, "Text files (*.TXT)|*.TXT|AllFiles (*.*)|*.*|"
END
// Exception string resources (include\owl\except.rc)
STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
BEGIN
IDS_OWLEXCEPTION, "ObjectWindows Exception"
IDS_UNHANDLEDXMSG, "Unhandled Exception"
IDS_OKTORESUME, "OK to resume?"
IDS_UNKNOWNEXCEPTION, "Unknown exception"
IDS_UNKNOWNERROR, "Unknown error"
IDS_NOAPP, "No application object"
IDS_OUTOFMEMORY, "Out of memory"
IDS_INVALIDMODULE, "Invalid module specified for window"
IDS_INVALIDMAINWINDOW, "Invalid MainWindow"
IDS_VBXLIBRARYFAIL, "VBX Library init failure"
IDS_INVALIDWINDOW, "Invalid window %s"
IDS_INVALIDCHILDWINDOW, "Invalid child window %s"
IDS_INVALIDCLIENTWINDOW, "Invalid client window %s"
IDS_CLASSREGISTERFAIL, "Class registration fail for window %s"
IDS_CHILDREGISTERFAIL, "Child class registration fail for window %s"
IDS_WINDOWCREATEFAIL, "Create fail for window %s"
IDS_WINDOWEXECUTEFAIL, "Execute fail for window %s"
IDS_CHILDCREATEFAIL, "Child create fail for window %s"
IDS_MENUFAILURE, "Menu creation failure"
IDS_VALIDATORSYNTAX, "Validator syntax error"
IDS_PRINTERERROR, "Printer error"
IDS_LAYOUTINCOMPLETE, "Incomplete layout constraints specified in window %s"
IDS_LAYOUTBADRELWIN, "Invalid relative window specified in layout constraint in window %s"
IDS_GDIFAILURE, "GDI failure"
IDS_GDIALLOCFAIL, "GDI allocate failure"
IDS_GDICREATEFAIL, "GDI creation failure"
IDS_GDIRESLOADFAIL, "GDI resource load failure"
IDS_GDIFILEREADFAIL, "GDI file read failure"
IDS_GDIDELETEFAIL, "GDI object %X delete failure"
IDS_GDIDESTROYFAIL, "GDI object %X destroy failure"
IDS_INVALIDDIBHANDLE, "Invalid DIB handle %X"
END
// General Window's status bar messages. (include\owl\statusba.rc)
STRINGTABLE
BEGIN
IDS_MODES "EXT|CAPS|NUM|SCRL|OVR|REC"
IDS_MODESOFF " | | | | | "
SC_SIZE, "Changes the size of the window"
SC_MOVE, "Moves the window to another position"
SC_MINIMIZE, "Reduces the window to an icon"
SC_MAXIMIZE, "Enlarges the window to it maximum size"
SC_RESTORE, "Restores the window to its previous size"
SC_CLOSE, "Closes the window"
SC_TASKLIST, "Opens task list"
SC_NEXTWINDOW, "Switches to next window"
END
// Validator messages (include\owl\validate.rc)
STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
BEGIN
IDS_VALPXPCONFORM "Input does not conform to picture:\n""%s"""
IDS_VALINVALIDCHAR "Invalid character in input"
IDS_VALNOTINRANGE "Value is not in the range %ld to %ld."
IDS_VALNOTINLIST "Input is not in valid-list"
END
//
// Bitmaps used by the speedbar. Each bitmap is associated with a
// particular menu command.
//
CM_FILENEW BITMAP "new.bmp"
CM_FILEOPEN BITMAP "open.bmp"
CM_FILESAVE BITMAP "save.bmp"
CM_EDITUNDO BITMAP "undo.bmp"
CM_EDITCUT BITMAP "cut.bmp"
CM_EDITCOPY BITMAP "copy.bmp"
CM_EDITPASTE BITMAP "paste.bmp"
CM_EDITFIND BITMAP "find.bmp"
CM_EDITFINDNEXT BITMAP "findnext.bmp"
CM_FILEPRINT BITMAP "print.bmp"
//
// Misc application definitions
//
// Application ICON
IDI_SDIAPPLICATION ICON "applsdi.ico"
// About box.
IDD_ABOUT DIALOG 12, 17, 204, 65
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About gdi_demo"
FONT 8, "MS Sans Serif"
{
CTEXT "Version", IDC_VERSION, 2, 14, 200, 8, SS_NOPREFIX
CONTROL "KNOW-HOW 1.0 Demo", -1, "STATIC", SS_CENTER | SS_NOPREFIX | WS_GROUP, 2, 4, 200, 8
CTEXT "", IDC_COPYRIGHT, 2, 27, 200, 17, SS_NOPREFIX
RTEXT "", IDC_DEBUG, 136, 55, 66, 8, SS_NOPREFIX
ICON IDI_SDIAPPLICATION, -1, 2, 2, 34, 34
DEFPUSHBUTTON "OK", IDOK, 82, 48, 40, 14
}
// TInputDialog class dialog box.
// Horizontal slider thumb bitmap for TSlider and VSlider (include\owl\slider.rc)
IDB_HSLIDERTHUMB BITMAP PRELOAD MOVEABLE DISCARDABLE
BEGIN
'42 4D 66 01 00 00 00 00 00 00 76 00 00 00 28 00'
'00 00 12 00 00 00 14 00 00 00 01 00 04 00 00 00'
'00 00 F0 00 00 00 00 00 00 00 00 00 00 00 00 00'
'00 00 10 00 00 00 00 00 00 00 00 00 C0 00 00 C0'
'00 00 00 C0 C0 00 C0 00 00 00 C0 00 C0 00 C0 C0'
'00 00 C0 C0 C0 00 80 80 80 00 00 00 FF 00 00 FF'
'00 00 00 FF FF 00 FF 00 00 00 FF 00 FF 00 FF FF'
'00 00 FF FF FF 00 BB BB 0B BB BB BB B0 BB BB 00'
'00 00 BB B0 80 BB BB BB 08 0B BB 00 00 00 BB 08'
'F8 0B BB B0 87 70 BB 00 00 00 B0 8F F8 80 BB 08'
'77 77 0B 00 00 00 08 F8 88 88 00 88 88 87 70 00'
'00 00 0F F7 77 88 00 88 77 77 70 00 00 00 0F F8'
'88 88